const install = (Vue) => {
  //   Vue.directive("hasPermission", {
  //     inserted(el, bind){
  //         console.log(el,bind);
  //     }
  //   });
  //   Vue.directive("has", function (el, bind) {
  //     console.log(el, bind, 111);
  //   });
  Vue.directive("hasPermision", {
    mounted(el, { value }) {
      const hash = {
        0: "增加",
        1: "删除",
        2: "修改",
        3: "查看",
      };
      el.innerText = hash[value];
    },
  });
};
export default install;
